package com.uncp.comisiondeadmision.service;

import java.util.List;

import javax.faces.model.SelectItem;

import com.uncp.comisiondeadmision.dao.DAOFactory;
import com.uncp.comisiondeadmision.dao.IDCarrera;

public class SCarrera implements ISCarrera{

	private IDCarrera carreraDAO;
	private DAOFactory fabrica = null;
	
	public SCarrera(int i) {
		
		fabrica = DAOFactory.getDAOFactory(i);
		this.carreraDAO = fabrica.getCarrera();
		
	}

	public List<SelectItem> listarCarreras(int codFacultad, int codEscuela) {
	
		return carreraDAO.listarCarreras(codFacultad, codEscuela);
	}

}
